package cn.iocoder.yudao.module.promotion.controller.app.rankinglist.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "App - 活动排行榜新增 BaseVO")
@Data
public class AppRankingListBaseVO {




    @Schema(description = "排行榜名称", example = "王五")
    @NotNull(message = "排行榜不能为空")
    private String name;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime endTime;

//    @Schema(description = "状态：0未开始，1进行中，2已结束", example = "1")
//    private Integer status;

    @Schema(description = "积分比例，整数")
    @Min(value = 0L, message = "积分比例必须大于 0")
    private Integer storeScale;

    @Schema(description = "活动内容")
    @NotNull(message = "活动内容不能为空")
    private String content;

    @Schema(description = "活动图片")
    @NotNull(message = "活动图片不能为空")
    private List<String> images;

    @Schema(description = "宣传语")
    @NotNull(message = "宣传语不能为空")
    private String slogans;

}